package net.ericaro.neojavagen.expressions;

/**
 * <b>SimpleMethodInvocation</b> ::= <{@link net .ericaro .neojavagen .names .MethodName MethodName}> "(" <{@link net .ericaro .neojavagen .expressions .Arguments
 * Arguments}> ")"
 * 
 * @author eric@ericaro.net
 */
public class SimpleMethodInvocation extends net.ericaro.neojavagen.JavaPartComposition implements net.ericaro.neojavagen.expressions.MethodInvocation {
	private net.ericaro.neojavagen.expressions.Arguments arguments;

	private net.ericaro.neojavagen.names.MethodName methodName;

	public SimpleMethodInvocation(net.ericaro.neojavagen.names.MethodName methodName, net.ericaro.neojavagen.expressions.Arguments arguments) {
		super();
		this.methodName = methodName;
		this.arguments = arguments;
	}

	public net.ericaro.neojavagen.expressions.Arguments getArguments() {
		return arguments;
	}

	public net.ericaro.neojavagen.names.MethodName getMethodName() {
		return methodName;
	}

	public void setArguments(net.ericaro.neojavagen.expressions.Arguments arguments) {
		this.arguments = arguments;
	}

	public void setMethodName(net.ericaro.neojavagen.names.MethodName methodName) {
		this.methodName = methodName;
	}

	@Override
	public java.lang.String toString() {
		return print(methodName, "(", arguments, ")");
	}
}
